
{if $aSettings.fc_extendserver==2}
	<div  align="center" >
		<script language="javascript" style="width:{$aSettings.fc_client_width};height:{$aSettings.fc_client_height};" src={$swfurl}></script>
	</div>
{else}
	<div align="center" id="flash" style="height:100%">
		<script src="{$aSettings.fc_client_loc}123flashchat.js"></script>
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
				{if $aSettings.fc_extendserver!=2 && $aSettings.fc_fullscreen == 1} width="100%" height="100%"
				{else} width="{$aSettings.fc_client_width}" height="{$aSettings.fc_client_height}"
			 	{/if}
				 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0" id="topcmm_123flashchat" type="application/x-shockwave-flash">
			<param name="movie" value="{$swfurl}" />
			<param name="quality" value="high" />
			<param name="menu" value="false" />
			<param name="scale" value="noscale" />
			<param name="allowScriptAccess" value="always" />
			<embed src="{$swfurl}" quality="high" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" name="topcmm_123flashchat"
				{if $aSettings.fc_extendserver!=2 && $aSettings.fc_fullscreen == 1} width="100%" height="100%"
			 	{else} width="{$aSettings.fc_client_width}" height="{$aSettings.fc_client_height}"
			 	{/if} >
			</embed>
		</object>
	</div>
{/if}
{if $aSettings.fc_extendserver!=2 && $aSettings.fc_fullscreen == 1}
<script type="text/javascript">
var height=document.documentElement.clientHeight;
document.getElementById('flash').style.height = height+"px";
</script>
{/if}
<style type="text/css">
{literal}
html,body{ height:100%; }
body { margin:0; padding:0; overflow:hidden; }
#site_content { height:100%; }
{/literal}
</style>

<h3>CHAT ROOMS</h3>
<div class="table">
{if $aSettings.fc_extendserver!=2}Total rooms: {$status.rn};{/if}
{if $aSettings.fc_extendserver!=2}Total connections: {$status.cn};{/if}
Login users: {$status.ln}
</div>
{if $aSettings.fc_room_list==1 && $aSettings.fc_extendserver!=2 }

<div class="table">
	Chat Rooms:

	{foreach from=$rooms key=name item=room}
		<a href="{url link='topcmmchat.chatroom' id=$room.id}" title="123flashchat" >{$room.name}</a>({$room.count});
	{/foreach}
</div>
{/if}

{if $aSettings.fc_user_list==1}

<div class="table">
	User List:

	{if $users == null}
		none
	{else}
		{foreach from=$users item=user}
			{foreach from=$user item=userone}
				{$userone.name};
			{/foreach}
		{/foreach}
	{/if}
</div>
{/if}
<br/>
<br/>